﻿<%@ Page Title="" Language="VB" MasterPageFile="~/_temp/MasterPage.master" AutoEventWireup="false" CodeFile="YCGridView.aspx.vb" Inherits="Controle_YCGridView_YCGridView" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:Button ID="Button1" runat="server" Text="Button" />
    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
    <asp:YCGridView ID="YCGridView1" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="CodPessoa" DataSourceID="SqlDataSource1">
        <Columns>
            
            <asp:BoundField DataField="CodPessoa" HeaderText="CodPessoa" 
                InsertVisible="False" ReadOnly="True" SortExpression="CodPessoa" />
            <asp:BoundField DataField="Nome" HeaderText="Nome" SortExpression="Nome" />
            <asp:YCRadioButtonField Value="1" />
        </Columns>
    </asp:YCGridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionStringSqlServer %>" 
        SelectCommand="SELECT [CodPessoa], [Nome] FROM [spam]"></asp:SqlDataSource>
</asp:Content>

